{% block head %}
    <!DOCTYPE HTML>
    <html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <title>测试管理系统</title>
        <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
        <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
        <link rel="stylesheet" href="static/layui/css/layui.css">
        <script src="static/layui/layui.js"></script>
        <!--     <script type="text/javascript">try { Typekit.load(); } catch (e) { }</script> -->
        <script type="text/javascript" src="static/js/tool_p.js"></script>
        <script src="../static/js/jquery-1.11.3.min.js"></script>
    </head>
{% endblock head %}


{% block left %}

    <div class="layui-layout-admin">
    <!-- 顶部 -->
    <div class="layui-header">
        <div style="display: inline-block">
            <a href="/"
               style="margin-left: 40px;top:0;width:200px;height:100%;line-height:60px;text-align:center;font-size:16px;font-weight:bold;color:#FFFFFF;">卡家测试管理平台</a>
        </div>
        <div style="display: inline-block;float: right">
            <ul class="layui-nav">
                <li id="nolog" class="layui-nav-item" lay-unselect="">
                    <a href="javascript:;" id="username">
                    </a>
                    <dl id="layui-nav-child" class="layui-nav-child" style="text-align: left">
                        <dd><a href="/logout" onclick="logout()">退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <!-- 左侧 -->
    <div class="layui-side layui-bg-black" id="menu1">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="test" id="menu">



            </ul>
        </div>
    </div>
    <script>
        // layui.use('element', function () {
        //     var element = layui.element;
        //     // is_menu();
        //     set_menu()
        //     // get_menu();
        //     set_username();
        //     element.render();
        // });

     set_menu()
    window.addEventListener('load',function(){
      layui.use('element', function () {
        var element = layui.element;
        // is_menu();
        // get_menu();
        set_username();
        element.render();
      });
    })

    </script>
{% endblock left %}


{% block right %}
    <!-- 页面右侧部分 -->
    <div style="padding: 10px;height: 100%;" class="layui-body"/>
{% endblock right %}

</body>

</div>
<!--<div id="test1"></div>-->

</html>
